<?php $controller = $this->uri->segment(1);?>
<div style="width:670px">
<?php if(!empty($result)){?>
<div class="breadcrumb">
	<a href="<?=base_url()?>">Trang chủ</a>
	<?php if($controller == 'live-concert' || $controller =='cuoc-thi'){?>
		<a href="<?=base_url().$result[0]['menu_slug']?>"><?=$result[0]['menu_name']?></a>
	<?php }else{ ?>
		» <a href="<?=base_url().'tin-tuc'?>">TIN TỨC </a> » <a href="<?=base_url().'tin-tuc/'.$result[0]['menu_slug']?>"><?=$result[0]['menu_name']?></a>
	<?php } ?>
</div>
  <div class="line cleafix"></div>
  <small class="date"><img src="<?=base_url()?>static/images/bg-meta-categories.gif" align="absmiddle"> <a href="<?=base_url().'tin-tuc/'.$result[0]['menu_slug']?>"><strong><?=$result[0]['menu_name']?></strong></a> <img src="<?=base_url()?>static/images/bg-meta-date.gif" align="absmiddle"> <?=$result[0]['created_time']?> <img src="<?=base_url()?>static/images/user_gray.png" align="absmiddle"> Cập nhật bởi <strong><?=$result[0]['author']?></strong> <img src="<?=base_url()?>static/images/folder_star.png" align="absmiddle"><strong> <?=$result[0]['view_count']?></strong> lượt xem </small>
  <h1><?=$result[0]['name']?></h1>
  <!--option show Avatar-->
  <!--end option show avatar-->
  <div class="detail"> 
	<h2><?=$result[0]['intro']?></h2>
	<?=$result[0]['content']?>
  </div>
<?php }?>
  <div class="line_dot"></div>
  <h3>Các tin khác <small class="date">[ xem danh sách bài trong <a href="<?=base_url().'tin-tuc/'.$result[0]['menu_slug']?>"><strong><?=$result[0]['menu_name']?></strong></a> ]</small></h3>
  <div class="detail">
    <ul>
	<?php if(!empty($relatedNews)){
	foreach($relatedNews as $news){ ?>
      <li>
		<a href="<?=base_url().'tin-tuc/'.$news['menu_slug'].'/view/'.$news['slug']?>"><?=$news['name']?></a></li>
	<?php }}?>
    </ul>
  </div>
</div>